package com.xiangxiao.rpan.utils;

import java.util.UUID;
/**
 * UUID工具类
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2022/12/29 17:13
 */
public class UUIDUtil {
  public static final String EMPTY_STR = "";
  public static final String HYPHEN_STR = "-";

  /**
   * 获取UUID字符串
   *
   * @return
   */
  public static String getUUID() {
    return UUID.randomUUID().toString().replace(HYPHEN_STR, EMPTY_STR).toUpperCase();
  }
}
